package com.jzx.provider.cv.dto.command;

import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * @author daihuihui
 * @date 2019/2/5
 */
@Data
@Builder
public class WorkInfoCommand implements Serializable {

    private Integer id;

    /**
     * 对应简历id
     */
    private Long cvId;

    /**
     * 开始日期
     */
    private String startDate;

    /**
     * 离职日期
     */
    private String endDate;

    /**
     * 公司名称
     */
    @Size(max = 20)
    private String company;

    /**
     * 公司规模
     */
    private Integer scale;

    /**
     * see {@link com.jzx.provider.cv.constants.CompanyNature}
     */
    private Integer nature;

    /**
     * 公司行业
     */
    private List<String> vocation;

    /**
     * 下属人数
     */
    private Integer numbers;

    /**
     * 职位
     */
    private String title;

    /**
     * 工作职责业绩
     */
    @Size(min = 0, max = 1000)
    private String duties;
}
